import { ref } from 'vue'

export default function useSafeAreaInsets() {
    const safeAreaInsets = ref(null)

    uni.getSystemInfo({
        success: (res) => {
            safeAreaInsets.value = res.safeAreaInsets
        },
    })

    return safeAreaInsets
}
